package com.guan.common.core.constants;

public class CacheConstants {

    /**
     * 存储redis的key的前缀，方便业务管理
     */
    public final static String LOGIN_TOKEN_KEY_PREFIX = "loginUser:";


    /**
     * 过期时间
     */
    public  final  static long EXP = 720;

    /**
     * redis手机验证码key前缀
     */
    public static final String PHONE_CODE_KEY = "p:c:";

    /**
     * redis手机验证码次数key前缀
     */
    public static final String CODE_COUNT_KEY = "c:c:";

    /**
     * 未完赛竞赛列表 redis key
     */
    public static final String EXAM_LIST_UNFINISHED = "e:l:uf:";

    /**
     * 已完赛竞赛列表 redis key
     */
    public static final String EXAM_LIST_FINISHED = "e:l:f:";

    /**
     * 竞赛详细信息的 redis key
     */
    public static final String EXAM_DETAIL = "e:d:";

    /**
     * 用户报名的竞赛列表 redis key
     */
    public static final String EXAM_LIST_USER = "e:l:my:";

    /**
     * 用户个人详细信息redis缓存获默认过期时间
     */
    public static final Integer USER_EXP = 10;

    /**
     * 用户个人详细信息的 redis key前缀
     */
    public static final String USER_DETAIL = "u:d:";

    /**
     * 用户上传头像次数 redis前缀
     */
    public static final String USER_UPLOAD_TIMES_KEY = "u:u:t";

    /**
     * 题目缓存列表
     */
    public static final String QUESTION_LIST = "q:l";

    /**
     *
     */
    public static final String EXAM_QUESTION_LIST = "e:q:l:";

    public static final String QUESTION_HOST_LIST = "q:h:l";

    public static final String USER_MESSAGE_LIST = "u:m:l:";

    public static final String MESSAGE_DETAIL = "m:d:";

    public static final String EXAM_RANK_LIST = "e:r:l:";

    public static final long DEFAULT_START = 0;

    public static final long DEFAULT_END = -1;



}
